//
//  NetWorkTools.h
//  
//
//  Created by 张贞献 on 16/5/10.
//
//

#import <AFNetworking/AFNetworking.h>
#import "NetWorkBlocks.h"
#import "NetWorkDefine.h"
#import <Foundation/Foundation.h>

@interface NetWorkTools : AFHTTPSessionManager

//网络工具类
+ (instancetype) shareManager;
//检测网络
-(BOOL) isReachableByAFN;

///我的GET请求
- (void)GET_RequestWithUrlString:(NSString *)urlString
                          parmas:(NSDictionary *)params
                   successBloock:(SuccessCompletedBlock)success
                    failureBlock:(FailureCompletedBlock)failure;

///我的POST请求
- (void)POST_RequestWithUrlString:(NSString *)urlString
                           parmas:(NSDictionary *)params
                    successBloock:(SuccessCompletedBlock)success
                     failureBlock:(FailureCompletedBlock)failure;

//……  因为本接口只有 GET 和 POST 请求，实际工作中，大家最好把DELETE、PUT都写上，，



@end
